import requests

cookies = {
    'Hm_lvt_9511d505b6dfa0c133ef4f9b744a16da': '1702522443',
    '__root_domain_v': '.youzhicai.com',
    '_qddaz': 'QD.790102522443369',
    '_qdda': '2-1.1',
    '_qddab': '2-m4ij3z.lq4lwky7',
    'Hm_lpvt_9511d505b6dfa0c133ef4f9b744a16da': '1702522543',
}

headers = {
    'authority': 'youzhicai.com',
    'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7',
    'accept-language': 'zh-CN,zh;q=0.9',
    'cache-control': 'max-age=0',
    # 'cookie': 'Hm_lvt_9511d505b6dfa0c133ef4f9b744a16da=1702522443; __root_domain_v=.youzhicai.com; _qddaz=QD.790102522443369; _qdda=2-1.1; _qddab=2-m4ij3z.lq4lwky7; Hm_lpvt_9511d505b6dfa0c133ef4f9b744a16da=1702522543',
    'if-modified-since': 'Thu, 14 Dec 2023 02:55:14 GMT',
    'if-none-match': 'W/"657a6e92-a2cec"',
    'sec-ch-ua': '"Google Chrome";v="119", "Chromium";v="119", "Not?A_Brand";v="24"',
    'sec-ch-ua-mobile': '?0',
    'sec-ch-ua-platform': '"Windows"',
    'sec-fetch-dest': 'document',
    'sec-fetch-mode': 'navigate',
    'sec-fetch-site': 'none',
    'sec-fetch-user': '?1',
    'upgrade-insecure-requests': '1',
    'Accept-Language':"zh-CN,zh;q=0.9",
    'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36',
}

response = requests.get('https://youzhicai.com/', cookies=cookies, headers=headers)
response.encoding='utf-8'
open('/demo.html','w',encoding='utf-8').write(response.text)